import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int m = console.nextInt();
        int n = console.nextInt();
        int result = getCM(m, n);
        System.out.println(result);
    }
    //先求m,n里的最大值max
//从max开始，在max到m*n之间找是否能够被m,n整除的数
    public static int getCM(int m, int n){

        int max=Math.max(m,n);

        for(int i=max;i<m*n;i++){

            if(i%m==0&&i%n==0){
                return i;
            }
        }
        return m*n;
    }
}